package com.cenwangkeji.resident.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @松 on 2019/11/10 13:57
 */
public class MessageBean implements Parcelable {

    /**
     * content : 重要通知：您需要在2019-10-11到我院进行健康体检！
     * date : 2019-10-11
     * grName : 张三
     * sfId : 123
     * zxbName : 健康体检
     */

    private String content;
    private String date;
    private String grName;
    private int sfId;
    private String zxbName;

    protected MessageBean(Parcel in) {
        content = in.readString();
        date = in.readString();
        grName = in.readString();
        sfId = in.readInt();
        zxbName = in.readString();
    }

    public static final Creator<MessageBean> CREATOR = new Creator<MessageBean>() {
        @Override
        public MessageBean createFromParcel(Parcel in) {
            return new MessageBean(in);
        }

        @Override
        public MessageBean[] newArray(int size) {
            return new MessageBean[size];
        }
    };

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getGrName() {
        return grName;
    }

    public void setGrName(String grName) {
        this.grName = grName;
    }

    public int getSfId() {
        return sfId;
    }

    public void setSfId(int sfId) {
        this.sfId = sfId;
    }

    public String getZxbName() {
        return zxbName;
    }

    public void setZxbName(String zxbName) {
        this.zxbName = zxbName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(content);
        dest.writeString(date);
        dest.writeString(grName);
        dest.writeInt(sfId);
        dest.writeString(zxbName);
    }
}
